<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<script type="text/javascript" src="modernizr.min.js"></script>
<body>
<script type="text/javascript">
    if(Modernizr.websockets){
        console.log("支持");
    }else{
        console.log("不支持");
    }
</script>
</body>
</html>